<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<script type="text/javascript" src="libs/jquery-1.11.0.js"></script>
		<script type="text/javascript" src="pub/JSCommonUtil.js"></script>
		<title>foreach测试</title>
	</head>


	<body>
		<h2>简单foreach 测试</h2>
		<div id="father1">
		</div>
		<h2>复杂点的foreach测试</h2>		
		<div id="father2"></div>
		
		<script type="text/javascript">
		var session={};
		$(function(){
			jc.render({a:[0,1,2]},"test_foreach1",$('#father1'),function(){
				console.log("OK");
			})
			var data2={
				a:[
					{
						a:"a1",
						b:"b1"
					},
					{
						a:"a2",
						b:"b2"
					},
					{
						a:"a3",
						b:"b3"
					}
				]
			}
			jc.render(data2,"test_foreach2",$('#father2'),function(){
				console.log("复杂的测试OK")
			})
			
			
			
		})
		</script>
	</body>
</html>